<%@include file="template/configuration.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>
            ${website} || 
            <c:choose>
                <c:when test="${not empty coursetoedit}">Edit</c:when>
                <c:otherwise>Add</c:otherwise>
            </c:choose>course
        </title>
        ${stylesheet}
        ${jquery}
        ${jsdropdown}
        ${jslist}
    </head>
    <body>
        <div class="container">
            <%@include file="template/header.jsp" %>
            <div class="content">
                <h1>Manage student</h1>
                <h3>Edit student details</h3>
                <form action="../ManageStudent" method="POST">
                    <input type="hidden" value="${student.id}" name="studentid"/>
                    <label for="name">Firstname</label> <input type="text" name="firstname" value="${student.firstname}" id="name" required/>
                    </br>
                     <label for="name">Insertion</label> <input type="text" name="insertion" value="${student.insertion}" id="name" required/>
                    </br>
                     <label for="name">Lastname</label> <input type="text" name="lastname" value="${student.lastname}" id="name" required/>
                    </br>
                    <label for="name">E-mail</label> <input type="text" name="email" value="${student.user.email}" id="name" required/>
                    </br>
                    <label for="name">Interests</label> <input type="text" name="interests" value="${student.interests}" id="name" required/>
                    </br>
                    <label>&nbsp;</label> <input type="submit" value="Save student"/>

                </form>
            </div>
            <%@include file="template/footer.jsp" %>
        </div>
    </body>
</html>
